package ihuoui.mq.store;

import java.io.Serializable;

public class Mess implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6484559825847669806L;
	private String topic;
	private String tag;
	private byte[] body;

	public Mess() {

	}

	public Mess(String topic, String tag, byte[] body) {
		this.topic = topic;
		this.tag = tag;
		this.body = body;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public byte[] getBody() {
		return body;
	}

	public void setBody(byte[] body) {
		this.body = body;
	}
	
	@Override
	public String toString() {
		return topic+tag;
	}
	

}
